<?php 
session_start();
$websitePermission = 0;
include "headerVerify.php";
include "connect.php"; 

//logs user out to main log in screen if they havent permissions to view this page
if ($_SESSION['userName'] == "")

{
header('Location: index.php');
}

?>

<html>
<head>
<title>MyAccount | <?php echo $_SESSION['websiteAddress'] ?></title>

<link href="css/adminMain.css" rel="stylesheet" type="text/css">
<link href="css/customerEmil.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<body >

<div id="adminPageContainer" onClick="function add(text)">

<?php include "header.php" ?>

<?php include "navigation.php" ?>

<div id="emailContent">

<?php
//Writes out hosting details if user has permission to view it
//Permission level
$hostingPermission = 6;
//Permission check
?>

<form action="sendCustomerEmail.php" method="post" name="customerEmail">

<div id="emailOptionsContent">

	<label>Select email templete:</label>

	<select id="fromSelect" name="fromSelect">
	  <option value="donotreply@24-7saddles.com">Feedback - Email</option>
    </select>
    
    <input id="from" name="from" type="hidden" value="noreply@24-7saddles.com">
    
    <label>Send to:</label>
    
    <input id="to" name="to" type="text" value="" placeholder="Customer email address">
    
    <input id="sendEmail" name="sendEmail" type="submit" value="Send email">

    
</div>

<div id="emailMessageContent">

	<p id="emailHeader">Preview:</p>

	<input id="emailTitle" name="emailTitle" type="text" value="24-7 Saddles.com">

	<textarea id="emailContent1" name="emailContent1" >welcomes your feedback...</textarea>
    
    <img src="Emails/customerFeedback/images/thank-you.jpg" width="300" height="252">
    
    <textarea name="emailContent2" id="emailContent2" >for your time and custom.</textarea>

	<p id="emailHeader">Preview:</p>
    
</div>

</form>

</div>

</div>
</body>
</html>